home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / dragpic2 / readme.txt < prev   
Text File  |  1998-04-06  |  1KB  |  24 lines

  1. http://www.vb-helper.com/HowTo/dragpic2.zip
  2.  
  3.     Purpose
  4. Overlay a picture on another and allow the user to drag it using BitBlt.
  5.  
  6.     Method
  7. Create a mask that is black where the overlaid picture should show and white
  8. where the background should show. Copy the mask using BitBlt with opcode
  9. MERGEPAINT. Then copy the overlay image with opcode SRCAND.
  10.  
  11. The book Visual Basic Graphics Programming has more information on this kind
  12. of graphic manipulation. See www.vb-helper.com/vbgp.htm.
  13.  
  14. The file http://www.vb-helper.com/HowTo/dragpic2.zip performs the same 
  15. operation using PaintPicture instead of BitBlt. This version was created
  16. because BitBlt is roughly 10 times faster than PaintPicture. Note that it is
  17. still fairly slow for the purpose of dragging an image around.
  18.  
  19.     Disclaimer
  20. This example program is provided "as is" with no warranty of any kind. It is
  21. intended for demonstration purposes only. In particular, it does not error
  22. handling. You can use the example in any form, but please mention
  23. www.vb-helper.com.
  24.